define(function(require, exports, module) {
	// vue，模板路由配置
	exports = {
		// 页面数据
		data: function() {
			return {
				menus: [{
					name: '首页',
					url: '/home',
					icon: 'icon-home',
					children: []
				}, {
					name: '用户管理',
					url: '',
					icon: 'icon-user',
					children: [{
						name: '用户列表',
						url: '/user_userList',
						icon: '',
						children: []
					}]
				}, {
					name: '文件管理',
					url: '',
					icon: 'fa fa-file-o',
					children: [{
						name: '文件列表',
						url: '/file_fileList',
						icon: '',
						children: [{
							name: '多文件上传',
							url: '/file_multipleFilesUpload',
							icon: '',
							children: []
						}]
					}]
				}, {
					name: '自定义配置',
					url: '',
					icon: 'icon-screen-desktop',
					children: [{
						name: '自定义页面',
						url: '',
						icon: '',
						children: [{
							name: '新增自定义页面',
							url: '/customPage_addOrUpdate',
							icon: '',
							children: []
						}]
					}]
				}, {
					name: '系统设置',
					url: '',
					icon: 'icon-settings',
					children: [{
						name: '数据字典',
						url: '/systemSettings_dataDictionary_list',
						icon: '',
						children: []
					}]
				}, {
					name: '实例',
					url: '',
					icon: 'fa fa-list-ul',
					children: [{
						name: '列表页',
						url: '/exampleListPage',
						icon: '',
						children: []
					}, {
						name: '富文本编辑框',
						url: '/wangEditor',
						icon: '',
						children: []
					}]
				}],
			}
		},
		// 数据监听
		watch: {},
		// 方法
		methods: {
			// 页面跳转
			goPage: function(path) {
				if(!commonUtil().isEmpty(path)) {
					$indexScope.goPage(path);
				}
			},
			// 传入菜单，判断当前路由是否包含在菜单里
			addActiveClass: function(menus) {
				var flag = false;
				var path = this.$route.path.match("/.+/")[0];
				path = path.substring(0, path.length - 1);
				if(menus.length == null && menus.url == path) {
					return true;
				} else if(menus.length > 0) {
					for(var i in menus) {
						if(menus[i].url == path) {
							flag = true;
						} else if(menus[i].children != null && menus[i].children.length > 0) {
							flag = this.addActiveClass(menus[i].children);
						}
						if(flag) {
							break;
						}
					}
				} else if(menus.children != null && menus.children.length > 0) {
					flag = this.addActiveClass(menus.children);
				}
				return flag;
			}
		},
		// 导航钩子-页面渲染完运行的方法
		mounted: function() {},
		// 导航钩子-页面离开过后运行的方法
		beforeDestroy: function() {}
	};
	return exports;
});